home *** CD-ROM | disk | FTP | other *** search
- on MouseClick Quel_Env
- global gNumSpr, g1erSprLoc, gBoutons, gEtudAct, gEtatEtud, gEtatPrec, gEtudPrec, gSurvolPrec, gCodEnv, gNumEnv, gNomBestEnv, gSujet0, exitFrame, gCDpath, gOffZ, gOffE, gEnvSel, gOldEnvSel, gScopeEnZ, gScopeEnB, gDur
- curseur(6)
- sound stop 1
- set CodGen to gSujet0(Le_CodeZoom)
- if char 1 of gEtatPrec <> " " then
- set numPrec to getPos(gCodEnv, gEtatPrec)
- if numPrec = 1 then
- if (Quel_Env = 2) or (Quel_Env = 3) then
- set offDep to 141
- else
- set offDep to 232
- end if
- end if
- if numPrec = 2 then
- if (Quel_Env = 1) or (Quel_Env = 4) then
- set offDep to 232
- else
- set offDep to 141
- end if
- end if
- if numPrec = 3 then
- if (Quel_Env = 1) or (Quel_Env = 4) then
- set offDep to 232
- else
- set offDep to 141
- end if
- end if
- if numPrec = 4 then
- if (Quel_Env = 2) or (Quel_Env = 3) then
- set offDep to 141
- else
- set offDep to 232
- end if
- end if
- gScopeEnB(SetTime, (gOffZ + gOffE + offDep) * 4)
- go(the frame)
- set gDur to (gOffZ + gOffE + offDep + 75) * 4
- gScopeEnB(Box, 20, 92, 280, 256)
- gScopeEnB(SetCadence, 1)
- repeat while gScopeEnB(GetTime) < gDur
- go(the frame)
- end repeat
- gScopeEnB(SetCadence, 0)
- else
- gScopeEnB(visible, 1)
- end if
- set gOffE to ((getPos(gCodEnv, gEtatEtud) - 1) * 323) + 101
- put "><" && gOffZ + gOffE
- gScopeEnB(SetTime, 500)
- gScopeEnB(Box, 20, 92, 280, 256)
- go(the frame)
- set gDur to 1000
- gScopeEnB(SetCadence, 1)
- repeat while gScopeEnB(GetTime) < gDur
- go(the frame)
- end repeat
- gScopeEnB(SetCadence, 0)
- gBoutons(habille, g1erSprLoc + 7, "BTGOEI 1")
- curseur(-1)
- set gSurvolPrec to -1
- end
-
- on mouseDown
- global gNumSpr, gEtatEtud, gCodEnv, gNumEnv, gNomBestEnv, g1erSprLoc
- repeat with i = g1erSprLoc + 8 to g1erSprLoc + 11
- if rollOver(i) then
- set numact to charToNum(char 4 of the name of cast the castNum of sprite i) - 48
- set moncod to getAt(gCodEnv, numact)
- if (char 1 of moncod <> " ") and (moncod <> gEtatEtud) then
- curseur(2)
- set gNumSpr to i
- else
- curseur(7)
- end if
- exit repeat
- end if
- end repeat
- end
-
- on mouseUp
- global gNumSpr, gSurvolAct, gEtudAct, gEtudPrec, gEtatPrec, gEtatEtud, gCodEnv, gNumEnv, gNomBestEnv, g1erSprLoc, gSurvolPrec
- curseur(1)
- set numact to 10
- repeat with i = g1erSprLoc + 8 to g1erSprLoc + 11
- if rollOver(i) then
- set numact to charToNum(char 4 of the name of cast the castNum of sprite i) - 48
- set moncod to getAt(gCodEnv, numact)
- if (char 1 of moncod <> " ") and (moncod <> gEtatEtud) and (i = gNumSpr) then
- if numact = 2 then
- set gEtatPrec to gEtatEtud
- set gEtatEtud to moncod
- MouseClick(numact)
- else
- beep()
- set gSurvolPrec to -1
- end if
- else
- pass()
- end if
- exit repeat
- end if
- end repeat
- end
-